home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / dsniff / tcp_raw.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-18  |  522 b   |  23 lines

  1. /*
  2.   tcp_raw.h
  3.  
  4.   Raw (best-effor, half-duplex) TCP reassembly. Haaacccck.
  5.   
  6.   Copyright (c) 2000 Dug Song <dugsong@monkey.org>
  7.   
  8.   $Id: tcp_raw.h,v 1.1 2000/05/18 20:20:04 dugsong Exp $
  9. */
  10.  
  11. #ifndef TCP_RAW_H
  12. #define TCP_RAW_H
  13.  
  14. typedef void (*tcp_raw_callback_t)(u_long src, u_long dst,
  15.                    u_short sport, u_short dport,
  16.                    u_char *buf, int len);
  17.  
  18. struct iovec   *tcp_raw_input(struct ip *ip, struct tcphdr *tcp, int len);
  19.  
  20. void        tcp_raw_timeout(int timeout, tcp_raw_callback_t callback);
  21.  
  22. #endif /* TCP_RAW_H */
  23.